// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:34

// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   vu.java

package com.zelix;

import java.util.*;

// Referenced classes of package com.zelix:
//            tu, iu, hs, ux, 
//            gt, tb, kt

public class vu extends tu
{

    iu m[];
    int n;

    public vu(String s, kt kt, iu aiu[], ux ux1)
    {
        super(s, kt, ux1);
        b(aiu);
    }

    iu a(int k)
    {
        return m[k];
    }

    int a(iu iu1)
    {
        boolean flag = tb.b;
        if(super.l != null) goto _L2; else goto _L1
_L1:
        int k;
        super.l = new Hashtable((int)((double)n * 1.5D));
        k = 0;
        if(!flag) goto _L4; else goto _L3
_L3:
        super.l.put(m[k], super.j.a(k));
        k++;
_L4:
        if(k < n) goto _L3; else goto _L2
_L2:
        Object obj = super.l.get(iu1);
        if(obj != null)
            return ((Integer)obj).intValue();
        else
            return -1;
    }

    boolean i()
    {
        return super.k < n;
    }

    String j()
    {
        return m[super.k++].u();
    }

    public void a(iu aiu[])
    {
        b(aiu);
        e();
        d();
    }

    void b(iu aiu[])
    {
        int k;
        Vector vector;
        int l;
        boolean flag;
        flag = tb.b;
        k = aiu.length;
        vector = new Vector(k);
        l = 0;
        if(!flag) goto _L2; else goto _L1
_L1:
        if(aiu[l].H())
            vector.addElement(aiu[l]);
        l++;
_L2:
        if(l >= k)
        {
            n = vector.size();
            m = new iu[n];
            vector.copyInto(m);
            Arrays.sort(m);
            super.l = null;
            h();
            return;
        }
        if(true) goto _L1; else goto _L3
_L3:
    }
}